package com.pdf.utils;
/*
 *@ClassName: Md5Util
 *@Description: TODO
 *@author: 郑波
 *@date: 2019-04-13 22:24
 *@version: 1.0
 */

import org.springframework.util.DigestUtils;

public class Md5Util {
    public static String getKey(String name){
      return DigestUtils.md5DigestAsHex(name.getBytes());
    }

    public static void main(String[] args) {
        System.out.println(getKey("aaaa"));
    }
}
